#include <cstdio>

typedef struct _Student
{
	char *name;
	int id;
	float score;
	struct _Student *next;
	_Student(){};
	_Student(int id, char *name, float score);
	void Show();
}Student;

bool Asc(float a, float b);
bool Des(float a, float b);
void Swap(Student *a, Student *b);

bool Isvalid(Student *head, Student *child);
void Add(Student *head, Student *child);
void Remove(Student *head, int id);
void Show(Student *head);
void SortStudent(Student *head, bool mode);

void q7_5_run();